home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3grid.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  3.9 KB  |  152 lines

  1.  
  2. // JavaScript wrapper for r3grid.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_GRID_H = 1;
  7. include("oops/r3model.js")
  8.  
  9.  
  10. var R3CLID_GRID = 44;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Snap point to grid
  16. // p1: r3Coordsys
  17. // p3: r3Vect, point;
  18.  
  19. R3GRIDM_SNAPPOINT = 44000;
  20.  
  21. function mR3GRIDM_SNAPPOINT(p1, p3) {
  22.   DoA2(this.r3obj, 44000, p1, R3TID_COORDSYS, 0, p3, R3TID_VECTOR, 0);
  23. }
  24.  
  25. // Description: Draw grid
  26. // p1: Object, draw context
  27. // p3: Object, viewcam object
  28.  
  29. R3GRIDM_DRAW = 44001;
  30.  
  31. function mR3GRIDM_DRAW(p1, p3) {
  32.   DoA2(this.r3obj, 44001, p1, R3TID_OBJECT, 0, p3, R3TID_OBJECT, 0);
  33. }
  34.  
  35.  
  36.  
  37.  
  38. R3GRIDA_HorizontalSpacing = 44500;
  39. function SetR3GRIDA_HorizontalSpacing(value) {
  40.   R3Set(this.r3obj, R3GRIDA_HorizontalSpacing, value, R3TID_FLOAT, 0); 
  41. }
  42.  
  43. function GetR3GRIDA_HorizontalSpacing() {
  44.   return R3Get(this.r3obj, R3GRIDA_HorizontalSpacing, R3TID_FLOAT, 0); 
  45. }
  46.  
  47. R3GRIDA_VerticalSpacing = 44501;
  48. function SetR3GRIDA_VerticalSpacing(value) {
  49.   R3Set(this.r3obj, R3GRIDA_VerticalSpacing, value, R3TID_FLOAT, 0); 
  50. }
  51.  
  52. function GetR3GRIDA_VerticalSpacing() {
  53.   return R3Get(this.r3obj, R3GRIDA_VerticalSpacing, R3TID_FLOAT, 0); 
  54. }
  55.  
  56. R3GRIDA_NormalSpacing = 44502;
  57. function SetR3GRIDA_NormalSpacing(value) {
  58.   R3Set(this.r3obj, R3GRIDA_NormalSpacing, value, R3TID_FLOAT, 0); 
  59. }
  60.  
  61. function GetR3GRIDA_NormalSpacing() {
  62.   return R3Get(this.r3obj, R3GRIDA_NormalSpacing, R3TID_FLOAT, 0); 
  63. }
  64.  
  65. R3GRIDA_Origin = 44503;
  66. function SetR3GRIDA_Origin(value) {
  67.   R3Set(this.r3obj, R3GRIDA_Origin, value, R3TID_VECTOR, 0); 
  68. }
  69.  
  70. function GetR3GRIDA_Origin() {
  71.   return R3Get(this.r3obj, R3GRIDA_Origin, R3TID_VECTOR, 0); 
  72. }
  73.  
  74. R3GRIDA_Color = 44504;
  75. function SetR3GRIDA_Color(value) {
  76.   R3Set(this.r3obj, R3GRIDA_Color, value, R3TID_COLOR_RGB, 0); 
  77. }
  78.  
  79. function GetR3GRIDA_Color() {
  80.   return R3Get(this.r3obj, R3GRIDA_Color, R3TID_COLOR_RGB, 0); 
  81. }
  82.  
  83. R3GRIDA_Color2 = 44505;
  84. function SetR3GRIDA_Color2(value) {
  85.   R3Set(this.r3obj, R3GRIDA_Color2, value, R3TID_COLOR_RGB, 0); 
  86. }
  87.  
  88. function GetR3GRIDA_Color2() {
  89.   return R3Get(this.r3obj, R3GRIDA_Color2, R3TID_COLOR_RGB, 0); 
  90. }
  91.  
  92. R3GRIDA_ColorCycle = 44506;
  93. function SetR3GRIDA_ColorCycle(value) {
  94.   R3Set(this.r3obj, R3GRIDA_ColorCycle, value, R3TID_INTEGER, 0); 
  95. }
  96.  
  97. function GetR3GRIDA_ColorCycle() {
  98.   return R3Get(this.r3obj, R3GRIDA_ColorCycle, R3TID_INTEGER, 0); 
  99. }
  100.  
  101. R3GRIDA_Count = 44510;
  102. function SetR3GRIDA_Count(value) {
  103.   R3Set(this.r3obj, R3GRIDA_Count, value, R3TID_INTEGER, 0); 
  104. }
  105.  
  106. function GetR3GRIDA_Count() {
  107.   return R3Get(this.r3obj, R3GRIDA_Count, R3TID_INTEGER, 0); 
  108. }
  109.  
  110. R3GRIDA_FixedSize = 44511;
  111. function SetR3GRIDA_FixedSize(value) {
  112.   R3Set(this.r3obj, R3GRIDA_FixedSize, value, R3TID_INTEGER, 0); 
  113. }
  114.  
  115. function GetR3GRIDA_FixedSize() {
  116.   return R3Get(this.r3obj, R3GRIDA_FixedSize, R3TID_INTEGER, 0); 
  117. }
  118.  
  119.  
  120.  
  121. function r3Grid () { 
  122.    this.base = r3God;
  123.    if(arguments.length) {
  124.       this.base(R3CLID_GRID, arguments);
  125.    }
  126.    // Methods
  127.    this.SNAPPOINT=mR3GRIDM_SNAPPOINT;
  128.    this.DRAW=mR3GRIDM_DRAW;
  129.  
  130.    // Attributes
  131.    this.GetHorizontalSpacing=GetR3GRIDA_HorizontalSpacing;
  132.    this.SetHorizontalSpacing=SetR3GRIDA_HorizontalSpacing;
  133.    this.GetVerticalSpacing=GetR3GRIDA_VerticalSpacing;
  134.    this.SetVerticalSpacing=SetR3GRIDA_VerticalSpacing;
  135.    this.GetNormalSpacing=GetR3GRIDA_NormalSpacing;
  136.    this.SetNormalSpacing=SetR3GRIDA_NormalSpacing;
  137.    this.GetOrigin=GetR3GRIDA_Origin;
  138.    this.SetOrigin=SetR3GRIDA_Origin;
  139.    this.GetColor=GetR3GRIDA_Color;
  140.    this.SetColor=SetR3GRIDA_Color;
  141.    this.GetColor2=GetR3GRIDA_Color2;
  142.    this.SetColor2=SetR3GRIDA_Color2;
  143.    this.GetColorCycle=GetR3GRIDA_ColorCycle;
  144.    this.SetColorCycle=SetR3GRIDA_ColorCycle;
  145.    this.GetCount=GetR3GRIDA_Count;
  146.    this.SetCount=SetR3GRIDA_Count;
  147.    this.GetFixedSize=GetR3GRIDA_FixedSize;
  148.    this.SetFixedSize=SetR3GRIDA_FixedSize;
  149. }
  150.  
  151. r3Grid.prototype=new r3Model;
  152. // r3grid.h_H